from django.test import TestCase
import redis
from django.core.mail import send_mail
from djang_ol import settings
from django.http import JsonResponse

# Create your tests here.

class redsis_info():
  #要保存的数据方式以及路由，端口
  r = redis.Redis()
  #操作redis的命令，进行增删改擦等
  r.set("sss","ccc")
  r.zadd("hpjy",{"aa":10,"bb":8,"cc":5})
  #保存数据
  r.save()

if __name__ == '__main__':
    redsis_info()


